// 数据字典接口
import request from '/src/utils/request'

export function GetDataDictionaryTypes(sort) {
    return request({
        url: "/dataDictionary",
        method: "get",
        params: {
            sort: sort,
            page: 1,
            size: 100
        }
    });
}

// 修改配置接口
export function UpdateConfig(item) {
    return request.put("/dataDictionary", item)
}

// 覆盖文件
export function CoveringFile(formData) {
    return request.put("/dataDictionary/file", formData, {headers: {'Content-Type': 'multipart/form-data'}})
}